<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<h2><?php echo $title; ?></h2>

<?php echo $error;?>

<?php echo validation_errors(); ?>

<?php echo form_open_multipart('news/create'); ?>

    <label for="title">Title</label>
    <input type="input" name="title" /><br />

    <label for="text">Text</label>
    <textarea name="text"></textarea><br />
    
    <label for="cover_image">Cover Image</label>
    <input type="file" name="cover_image" size="20" />

    <br><br>

    <input type="submit" name="submit" value="Create news item" />

</form>

